package client.session;

import client.Chat;
import stalker.Stalker;

public class ReceiveInvitationSessionVisitor implements SessionVisitor<Void> {
  
  private final Stalker inviter_;
  private final Stalker location_;
  
  public ReceiveInvitationSessionVisitor(Stalker inviter, Stalker location) {
    assert inviter != null && location != null;
    inviter_ = inviter;
    location_ = location;
  }

  public Void visit(Chat chat) {
    chat.receiveInvitation(inviter_, location_);
    return null;
  }
  
}
